import http from '../utils/request'

export const getSettingList = (params) => {
    return http.get('/settings', params)
}

export const addSetting = (data) => {
    return http.post('/settings', data)
}

export const editSetting = (setting, data) => {
    return http.put(`/settings/${setting}`, data)
}

export const deleteSetting = (setting) => {
    return http.delete(`/settings/${setting}`)
}
